<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>左侧导航menu</title>
    <link href="__PUBLIC__/Css/admin/css.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="__PUBLIC__/Js/admin/sdmenu.js"></script>
    <script type="text/javascript">
        // <![CDATA[
        var myMenu;
        window.onload = function () {
            myMenu = new SDMenu("my_menu");
            myMenu.init();
        };
        // ]]>
    </script>
    <style type=text/css>
        html {
            SCROLLBAR-FACE-COLOR: #538ec6;
            SCROLLBAR-HIGHLIGHT-COLOR: #dce5f0;
            SCROLLBAR-SHADOW-COLOR: #2c6daa;
            SCROLLBAR-3DLIGHT-COLOR: #dce5f0;
            SCROLLBAR-ARROW-COLOR: #2c6daa;
            SCROLLBAR-TRACK-COLOR: #dce5f0;
            SCROLLBAR-DARKSHADOW-COLOR: #dce5f0;
            overflow-x: hidden;
        }

        body {
            overflow-x: hidden;
            background: url(__PUBLIC__/Images/admin/leftbg.jpg) left top repeat-y #f2f0f5;
            width: 194px;
        }
    </style>
</head>
<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
<div id="left-top">
    <div><img src="__PUBLIC__/Images/admin/member.gif" width="44" height="44"/></div>
    <span>用户：{$Think.session.admin_name}<br>角色：{$role_name|default="超级管理员"}</span>
</div>

<div style="float: left" id="my_menu" class="sdmenu">
    <foreach name='authp' item='p'>
        <div class="collapsed">
            <span>{$p['auth_name']}</span>
            <foreach name='auths' item='s'>
                <if condition="$s['auth_pid'] eq $p['id']">
                    <a href="__MODULE__/{$s.auth_c}/{$s.auth_a}" target="mainFrame" onFocus="this.blur()">{$s['auth_name']}</a>
                </if>
            </foreach>
        </div>
    </foreach>
</div>

</body>
</html>